#include <func.h>

int main(int argc,char *argv[])
{
    ARGS_CHECK(argc,2);
    int fdr=open(argv[1],O_RDONLY);
    ERROR_CHECK(fdr,-1,"open");
    printf("read_pipe is open\n");
    char buf[100];
    read(fdr,buf,sizeof(buf));
    printf("buf=%s\n",buf);
    return 0;
}

